<template>
  <view class="hot">
    <view class="hot-item" v-for="item in 4" :key="item">
      <!-- 标题 -->
      <view class="title">
        <text class="title-text">特惠推荐</text>
        <text class="title-desc">精选全攻略</text>
      </view>
      <!-- 图片 -->
      <navigator hover-class="none"  class="cards">
        <image
          v-for="(item, index) in 2"
          :key="index"
          class="image"
          mode="aspectFit"
          src="../../../static/uploads/1-桃气乌龙豆乳.jpg"
        ></image>
      </navigator>
    </view>
  </view>
</template>

<script>
export default {

}
</script>

<style lang="less">
.hot {
  margin: 20rpx 20rpx;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 508rpx;
  background-color: aqua;
  border-radius: 10rpx;
  .hot-item {
    width: 50%;
    border-right: 1rpx solid #eee;
    border-top: 1rpx solid #eee;
    &:nth-child(2n) {
      border-right:0 none;
    }
    &:nth-child(-n+2) {
      border-top:0 none;
    }
    .title {
      padding: 24rpx 24rpx 0;
      font-size: 32rpx;
      color: #262626;
      .title-text {
        margin-right: 18rpx;
      }
      .title-desc {
        font-size: 24rpx;
        color: #7f7f7f;
      }
    }

    .cards {
      padding: 15rpx 20rpx;
      flex: 1;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .image {
        width: 150rpx;
        height: 150rpx;
      }
    }
    // &:nth-child(1+n) {
    //   border-top: 1rpx solid #eee;
    // }
  }
}

</style>